import { commands, ExtensionContext, window } from 'vscode';
import { config, MessageFormat } from 'vscode-nls';
import h1 from './h5/component/addaction';
import h2 from './h5/component/addc';
import h3 from './h5/component/addna';
import h4 from './h5/page/addaction';
import h5 from './h5/page/addpage';
import w1 from './web/component/addaction';
import w2 from './web/component/addc';
import w3 from './web/component/addna';
import w4 from './web/page/addaction';
import w5 from './web/page/addpage';
import wx1 from './wxapp/page/addaction';
import wx2 from './wxapp/page/addpage';

// const localize = loadMessageBundle(__filename);
const localize = config({
	messageFormat: MessageFormat.file
})(__filename);

export function activate(context: ExtensionContext) {

	const test = commands.registerCommand('feidao.test', () => {
		window.showInformationMessage(localize(0));
	});
	context.subscriptions.push(
		test,
		h1(), h2(), h3(), h4(), h5(),
		w1(), w2(), w3(), w4(), w5(),
		wx1(), wx2()
	);
}
